﻿@model AdvCMS.Models.ServerModel
           
@{
    ViewBag.Title = "Step 1 - Database Connection";
    Layout = "~/Views/Shared/Admin.cshtml";
}
<!-- They need these scripts for validations-->
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
    
<h2>Setting up your database connection</h2>
<br />
<p>Please enter your username and password provided by your host to connect to the database and server.</p>
@using (Html.BeginForm())
    {
        @Html.ValidationSummary()
   
        <table>
        <tr>
          <td>@Html.LabelFor(model => model.ServerName):</td><td>@Html.TextBoxFor(x => x.ServerName)</td>
        </tr>
        <tr>
         <td>@Html.LabelFor(model => model.DatabaseName):</td><td>@Html.TextBoxFor(x => x.DatabaseName)</td>
        </tr>
        <tr>
         <td>@Html.LabelFor(model => Model.UserName):</td><td>@Html.TextBoxFor(x => x.UserName)</td>
        </tr>
        <tr>
         <td>@Html.LabelFor(model => Model.UserPassword):</td><td>@Html.TextBoxFor(x => x.UserPassword)</td>
        </tr>
        </table>
        <input type="submit" value="Submit" /> 
     
    }
